-- encoding: UTF-8

------------------------------------------------
-- 谷歌拼音基金列表扩展
-- 版本: 0.1
-- 作者：Yichen Lu
-- 作者主页：http://yichenlu.cn/
-- 项目主页: http://code.google.com/p/google-pinyin-api/
--
-- 此扩展遵循GPLv3发布
------------------------------------------------

function YichenLu_Fund(input)
  if _YichenLu_Fund_Code[input] then
    return _YichenLu_Fund_Code[input]
  else
    local metatables = {}
    for k, v in pairs(_YichenLu_Fund_Code) do
      if string.sub(k, 1, #input) == input then
        table.insert(metatables, {["suggest"] = string.sub(k, #input+1), ["help"] = v})
      end
    end
    return metatables
  end
end

_YichenLu_Fund_Code ={
["000001"] = "华夏成长",
["000011"] = "华夏大盘精选",
["000021"] = "华夏优势",
["000031"] = "华夏复兴",
["000041"] = "华夏全球精选",
["001001"] = "华夏债券A/B",
["001003"] = "华夏债券C",
["001011"] = "华夏希望债券A",
["001013"] = "华夏希望债券C",
["002001"] = "华夏回报",
["002011"] = "华夏红利",
["002021"] = "华夏回报二号",
["002031"] = "华夏策略精选",
["003003"] = "华夏现金增利",
["020001"] = "国泰金鹰增长",
["020002"] = "国泰金龙债券A",
["020003"] = "国泰金龙行业",
["020005"] = "国泰金马稳健",
["020007"] = "国泰货币",
["020009"] = "国泰金鹏蓝筹",
["020010"] = "国泰金牛创新",
["020011"] = "国泰沪深300",
["020012"] = "国泰金龙债券C",
["020018"] = "国泰金鹿保本二期",
["040001"] = "华安创新",
["040002"] = "华安中国A股",
["040003"] = "华安现金富利",
["040004"] = "华安宝利配置",
["040005"] = "华安宏利",
["040006"] = "华安国际配置",
["040007"] = "华安成长",
["040008"] = "华安策略优选",
["040009"] = "华安收益A",
["040010"] = "华安收益B",
["040011"] = "华安核心优选",
["050001"] = "博时价值增长",
["050002"] = "博时裕富",
["050003"] = "博时现金收益",
["050004"] = "博时精选",
["050006"] = "博时稳定价值B",
["050007"] = "博时平衡配置",
["050008"] = "博时产业成长",
["050009"] = "博时新兴成长",
["050010"] = "博时特许价值",
["050106"] = "博时稳定价值A",
["050201"] = "博时价值贰号",
["070001"] = "嘉实成长",
["070002"] = "嘉实增长",
["070003"] = "嘉实稳健",
["070005"] = "嘉实债券",
["070006"] = "嘉实服务",
["070008"] = "嘉实货币",
["070009"] = "嘉实短债",
["070010"] = "嘉实主题",
["070011"] = "嘉实策略",
["070012"] = "嘉实海外中国",
["070013"] = "嘉实研究精选",
["070015"] = "嘉实多元收益A",
["070016"] = "嘉实多元收益B",
["070099"] = "嘉实优质",
["080001"] = "长盛成长价值",
["080002"] = "长盛创新先锋",
["080003"] = "长盛积极配置",
["080011"] = "长盛货币",
["090001"] = "大成价值增长",
["090002"] = "大成债券A/B",
["090003"] = "大成蓝筹稳健",
["090004"] = "大成精选增值",
["090005"] = "大成货币A",
["090006"] = "大成生命周期",
["090007"] = "大成策略回报",
["090008"] = "大成强债A/B",
["091005"] = "大成货币B",
["092002"] = "大成债券C",
["100016"] = "富国天源",
["100018"] = "富国天利",
["100020"] = "富国天益",
["100022"] = "富国天瑞",
["100025"] = "富国天时货币A",
["100026"] = "富国天合",
["100028"] = "富国天时货币B",
["100029"] = "富国天成红利",
["100032"] = "富国天鼎",
["110001"] = "易方达平稳增长",
["110002"] = "易方达策略成长",
["110003"] = "易方达50指数",
["110005"] = "易方达积极成长",
["110006"] = "易方达货币A",
["110007"] = "易方达稳健收益A",
["110008"] = "易方达稳健收益B",
["110009"] = "易方达价值精选",
["110010"] = "易方达价值成长",
["110011"] = "易方达中小盘",
["110012"] = "易方达科汇",
["110013"] = "易方达科翔",
["110016"] = "易方达货币B",
["110017"] = "易方达增强回报A",
["110018"] = "易方达增强回报B",
["110029"] = "易方达科讯",
["112002"] = "易方达策略二号",
["121001"] = "国投瑞银融华",
["121002"] = "国投瑞银景气",
["121003"] = "国投瑞银核心",
["121005"] = "国投瑞银创新",
["121006"] = "国投灵活配置",
["121007"] = "国投瑞福优先",
["121008"] = "国投瑞银优选",
["121009"] = "国投瑞银债券",
["150001"] = "国投瑞福进取",
["150002"] = "大成优选",
["150003"] = "建信优势动力",
["150005"] = "银河银富A",
["150103"] = "银河银泰",
["151001"] = "银河稳健",
["151002"] = "银河收益",
["151005"] = "银河银富B",
["159901"] = "易方达深100ETF",
["159902"] = "华夏中小板",
["160105"] = "南方积极配置",
["160106"] = "南方高增",
["160311"] = "华夏蓝筹",
["160314"] = "华夏行业精选",
["160505"] = "博时主题",
["160602"] = "鹏华普天债券A",
["160603"] = "鹏华普天收益",
["160605"] = "鹏华中国50",
["160606"] = "鹏华货币A",
["160607"] = "鹏华价值优选",
["160608"] = "鹏华普天债券B",
["160609"] = "鹏华货币B",
["160610"] = "鹏华动力增长",
["160611"] = "鹏华优质治理",
["160612"] = "鹏华丰收债券",
["160613"] = "鹏华盛世创新",
["160706"] = "嘉实300",
["160805"] = "长盛同智优势",
["160910"] = "大成创新成长",
["161005"] = "富国天惠",
["161010"] = "富国天丰债券",
["161601"] = "融通新蓝筹",
["161603"] = "融通债券",
["161604"] = "融通深证100",
["161605"] = "融通蓝筹成长",
["161606"] = "融通行业景气",
["161607"] = "融通巨潮",
["161608"] = "融通易支付货币",
["161609"] = "融通动力先锋",
["161610"] = "融通领先成长",
["161706"] = "招商优质成长",
["161902"] = "万家债券",
["161903"] = "万家公用",
["162006"] = "长城久富",
["162102"] = "金鹰小盘",
["162201"] = "荷银合丰成长",
["162202"] = "荷银合丰周期",
["162203"] = "荷银合丰稳定",
["162204"] = "荷银行业精选",
["162205"] = "荷银风险预算",
["162206"] = "泰达荷银货币",
["162207"] = "荷银效率优选",
["162208"] = "荷银首选企业",
["162209"] = "荷银市值优选",
["162210"] = "泰达荷银集利A",
["162299"] = "泰达荷银集利C",
["162605"] = "景顺鼎益LOF",
["162607"] = "景顺资源垄断",
["162703"] = "广发小盘",
["163302"] = "摩根士丹利资源",
["163303"] = "摩根士丹利货币",
["163402"] = "兴业趋势基金",
["163503"] = "天治核心成长",
["163801"] = "中银中国",
["163802"] = "中银货币",
["163803"] = "中银增长",
["163804"] = "中银收益",
["163805"] = "中银策略",
["163806"] = "中银稳健",
["166001"] = "中欧新趋势",
["166002"] = "中欧新蓝筹",
["180001"] = "银华优势",
["180002"] = "银华保本",
["180003"] = "银华88",
["180008"] = "银华货币A",
["180009"] = "银华货币B",
["180010"] = "银华优质",
["180012"] = "银华富裕",
["180013"] = "银华领先策略",
["180015"] = "银华增强收益",
["183001"] = "银华全球优选",
["184688"] = "基金开元",
["184689"] = "基金普惠",
["184690"] = "基金同益",
["184691"] = "基金景宏",
["184692"] = "基金裕隆",
["184693"] = "基金普丰",
["184698"] = "基金天元",
["184699"] = "基金同盛",
["184701"] = "基金景福",
["184703"] = "基金金盛",
["184705"] = "基金裕泽",
["184706"] = "基金天华",
["184713"] = "基金科翔",
["184721"] = "基金丰和",
["184722"] = "基金久嘉",
["184728"] = "基金鸿阳",
["199999"] = "相伴一生实盘示范",
["200001"] = "长城久恒",
["200002"] = "长城久泰",
["200003"] = "长城货币",
["200006"] = "长城消费增值",
["200007"] = "长城安心",
["200008"] = "长城品牌优选",
["200009"] = "长城稳健增利",
["200010"] = "长城双动力",
["202001"] = "南方稳健成长",
["202002"] = "南方稳健贰号",
["202003"] = "南方绩优成长",
["202005"] = "南方成份精选",
["202007"] = "南方隆元产业",
["202009"] = "南方盛元红利",
["202011"] = "南方优选价值",
["202101"] = "南方宝元",
["202102"] = "南方多利",
["202202"] = "南方避险",
["202211"] = "南方恒元保本",
["202301"] = "南方现金增利",
["202801"] = "南方全球精选",
["206001"] = "鹏华行业成长",
["210001"] = "金鹰优选",
["210002"] = "金鹰红利价值",
["213001"] = "宝盈鸿利收益",
["213002"] = "宝盈区域增长",
["213003"] = "宝盈策略增长",
["213007"] = "宝盈增强收益A/B",
["213008"] = "宝盈资源优选",
["213917"] = "宝盈增强收益C",
["217001"] = "招商安泰股票",
["217002"] = "招商安泰平衡",
["217003"] = "招商安泰债券A",
["217004"] = "招商现金增值",
["217005"] = "招商先锋基金",
["217008"] = "招商安本增利",
["217009"] = "招商核心价值",
["217010"] = "招商大盘蓝筹",
["217011"] = "招商安心收益",
["217203"] = "招商安泰债券B",
["233001"] = "摩根士丹利基础",
["240001"] = "华宝宝康消费品",
["240002"] = "华宝宝康配置",
["240003"] = "华宝宝康债券",
["240004"] = "华宝动力组合",
["240005"] = "华宝多策略增长",
["240006"] = "现金宝A",
["240007"] = "现金宝B",
["240008"] = "华宝收益增长",
["240009"] = "华宝先进成长",
["240010"] = "华宝行业精选",
["240011"] = "华宝大盘精选",
["241001"] = "华宝海外中国",
["253010"] = "德盛安心",
["255010"] = "德盛稳健",
["257010"] = "德盛小盘",
["257020"] = "德盛精选",
["257030"] = "德盛优势",
["257040"] = "德盛红利",
["260101"] = "景顺优选股票",
["260102"] = "景顺长城货币",
["260103"] = "景顺动力平衡",
["260104"] = "景顺内需增长",
["260108"] = "景顺新兴成长",
["260109"] = "景顺内需贰号",
["260110"] = "景顺精选蓝筹",
["260111"] = "景顺公司治理",
["270001"] = "广发聚富",
["270002"] = "广发稳健",
["270004"] = "广发货币",
["270005"] = "广发聚丰",
["270006"] = "广发优选",
["270007"] = "广发大盘",
["270008"] = "广发核心精选",
["270009"] = "广发强债",
["270010"] = "广发沪深300",
["288001"] = "中信经典配置",
["288002"] = "中信红利精选",
["288101"] = "中信现金优势货币",
["288102"] = "中信稳定双利",
["290001"] = "泰信天天收益",
["290002"] = "泰信先行策略",
["290003"] = "泰信双息双利",
["290004"] = "泰信优质生活",
["290005"] = "泰信优势增长",
["310308"] = "申万盛利精选",
["310318"] = "申万盛利配置",
["310328"] = "申万新动力",
["310338"] = "申万巴黎收益宝货币",
["310358"] = "申万新经济",
["310368"] = "申万巴黎竞争优势",
["310378"] = "申万添益宝债券A",
["310379"] = "申万添益宝债券B",
["320001"] = "诺安平衡",
["320002"] = "诺安货币",
["320003"] = "诺安股票",
["320004"] = "诺安优化",
["320005"] = "诺安价值",
["320006"] = "诺安灵活配置",
["340001"] = "兴业转债基金",
["340005"] = "兴业货币",
["340006"] = "兴业全球视野",
["340007"] = "兴业社会责任",
["350001"] = "天治财富增长",
["350002"] = "天治品质优选",
["350004"] = "天治天得利货币",
["350005"] = "天治创新先锋",
["350006"] = "天治稳健双盈",
["360001"] = "光大量化核心",
["360003"] = "光大货币",
["360005"] = "光大红利",
["360006"] = "光大新增长",
["360007"] = "光大优势",
["360008"] = "光大增利收益A",
["360009"] = "光大增利收益C",
["370010"] = "上投货币A",
["37001b"] = "上投货币B",
["373010"] = "上投双息平衡",
["373020"] = "上投双核平衡",
["375010"] = "上投中国优势",
["377010"] = "上投阿尔法",
["377016"] = "上投亚太优势",
["377020"] = "上投内需动力",
["378010"] = "上投成长先锋",
["379010"] = "上投中小盘",
["395001"] = "中海稳健收益",
["398001"] = "中海优质成长",
["398011"] = "中海分红增利",
["398021"] = "中海能源策略",
["398031"] = "中海灵活配置",
["400001"] = "东方龙",
["400003"] = "东方精选",
["400005"] = "东方金帐薄货币",
["400007"] = "东方策略成长",
["400009"] = "东方稳健回报",
["410001"] = "华富竞争力",
["410002"] = "华富货币",
["410003"] = "华富成长趋势",
["410004"] = "华富收益增强A",
["410005"] = "华富收益增强B",
["410006"] = "华富策略精选",
["420001"] = "天弘精选",
["420002"] = "天弘永利债券A",
["420003"] = "天弘永定价值",
["420102"] = "天弘永利债券B",
["450001"] = "国海收益",
["450002"] = "国海弹性",
["450003"] = "国海潜力",
["450004"] = "国海深化价值",
["450005"] = "国海强化收益A",
["450006"] = "国海强化收益C",
["460001"] = "友邦盛世",
["460002"] = "友邦成长",
["460003"] = "友邦增利B",
["460005"] = "友邦价值增长",
["481001"] = "工银价值",
["481004"] = "工银成长",
["481006"] = "工银红利",
["481008"] = "工银大盘蓝筹",
["482002"] = "工银瑞信货币",
["483003"] = "工银平衡",
["485005"] = "工银强债B",
["485007"] = "工银添利B",
["485105"] = "工银强债A",
["485107"] = "工银添利A",
["486001"] = "工银全球配置",
["500001"] = "基金金泰",
["500002"] = "基金泰和",
["500003"] = "基金安信",
["500005"] = "基金汉盛",
["500006"] = "基金裕阳",
["500008"] = "基金兴华",
["500009"] = "基金安顺",
["500011"] = "基金金鑫",
["500015"] = "基金汉兴",
["500018"] = "基金兴和",
["500025"] = "基金汉鼎",
["500038"] = "基金通乾",
["500056"] = "基金科瑞",
["500058"] = "基金银丰",
["510050"] = "华夏上证50",
["510080"] = "长盛债券基金",
["510081"] = "长盛动态精选",
["510180"] = "华安上证180",
["510880"] = "友邦红利ETF",
["519001"] = "银华核心价值",
["519003"] = "海富通收益增长",
["519005"] = "海富通股票",
["519007"] = "海富通强化回报",
["519008"] = "汇添富优势",
["519011"] = "海富通精选",
["519013"] = "海富通风格优势",
["519015"] = "海富通精选二号",
["519017"] = "大成积极成长",
["519018"] = "汇添富均衡",
["519019"] = "大成景阳",
["519021"] = "国泰金鼎价值",
["519023"] = "海富通稳健添利",
["519029"] = "华夏稳增",
["519035"] = "富国天博",
["519039"] = "长盛同德主题",
["519066"] = "汇添富蓝筹稳健",
["519068"] = "汇添富焦点",
["519069"] = "汇添富价值精选",
["519078"] = "汇添富强债",
["519087"] = "新世纪优选分红",
["519089"] = "新世纪优选成长",
["519100"] = "长盛中证100",
["519110"] = "浦银安盛价值",
["519111"] = "浦银安盛债券",
["519180"] = "万家180",
["519181"] = "万家和谐",
["519183"] = "万家灵活配置",
["519300"] = "大成沪深300",
["519505"] = "海富通货币A",
["519506"] = "海富通货币B",
["519508"] = "万家货币",
["519517"] = "汇添富货币B",
["519518"] = "汇添富货币A",
["519519"] = "友邦增利A",
["519588"] = "交银货币A",
["519589"] = "交银货币B",
["519601"] = "海富通海外精选",
["519666"] = "银信添利B",
["519667"] = "银信添利A",
["519668"] = "银河竞争优势",
["519680"] = "交银增利A",
["519682"] = "交银增利C",
["519688"] = "交银精选",
["519690"] = "交银稳健",
["519692"] = "交银成长",
["519694"] = "交银蓝筹",
["519696"] = "交银环球精选",
["519697"] = "交银保本",
["519989"] = "长信利丰",
["519991"] = "长信双利",
["519993"] = "长信增利",
["519994"] = "长信金利",
["519996"] = "长信银利",
["519999"] = "长信利息收益",
["530001"] = "建信恒久价值",
["530002"] = "建信货币",
["530003"] = "建信优选成长",
["530005"] = "建信优化配置",
["530006"] = "建信核心精选",
["530008"] = "建信稳定增利",
["540001"] = "汇丰晋信2016",
["540002"] = "汇丰晋信龙腾",
["540003"] = "汇丰晋信策略",
["540004"] = "汇丰晋信2026",
["540005"] = "汇丰晋信平稳",
["550001"] = "信诚四季红",
["550002"] = "信诚精萃成长",
["550003"] = "信诚盛世蓝筹",
["550004"] = "信诚三得益A",
["550005"] = "信诚三得益B",
["560001"] = "益民货币",
["560002"] = "益民红利成长",
["560003"] = "益民创新优势",
["560005"] = "益民债券",
["570001"] = "诺德价值",
["571002"] = "诺德主题",
["580001"] = "东吴嘉禾",
["580002"] = "东吴动力",
["580003"] = "东吴行业轮动",
["582001"] = "东吴优信稳健",
["590001"] = "中邮核心优选",
["590002"] = "中邮核心成长",
["610001"] = "信达澳银增长",
["610002"] = "信达澳银灵活配置",
["620001"] = "宝石动力保本",
["620002"] = "金元比联成长动力",
["630001"] = "华商领先企业",
["630002"] = "华商盛世成长",
["630003"] = "华商收益A",
["630103"] = "华商收益B",
["660001"] = "农银汇理行业成长",
["660002"] = "农银汇理恒久增利",
}

------------

ime.register_command("jj", "YichenLu_Fund", "基金","alpha","输入基金代码：如200001")
